package com.leizhou.consumer.client.fallback;

import com.leizhou.consumer.client.UserClient;
import com.leizhou.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author LT
 * @version 1.0.0
 * @ClassName UserClientFallback.java
 * @Description TODO
 * @createTime 2020年04月26日 00:55:00
 */
@Component
public class UserClientFallback implements UserClient {
    @Override
    public User findOne(Long id) {
        User user = new User();
        // user.setId(1L);
        // user.setName("用户异常");
        return user;
    }
}
